package com.dly.blog.mapper;

import com.dly.blog.domain.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dly.blog.domain.dto.MenuPermissionDTO;

import java.util.List;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author DLY
 * @since 2024-11-13 15:16:31
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> searchAllByRoleIds(List<String> roleIds);

    List<String> searchAllPermissionCodeByUserId(String userId);

    List<MenuPermissionDTO> searchAllMenu();
}




